from django.urls import path,include
from .import views
"""
labels/ 1、所有标签列表  GET
labels/users/ 2、用户关注的标签 GET
labels/{id}/focusin/ 13、关注标签 PUT
labels/{id}/focusout/ 14、取消关注标签 PUT
labels/{id}/ 15、标签详情 GET
questions/{id}/label/new/ 3、最新回答的问题 GET
questions/{id}/label/hot/ 4、热门回答的问题 GET
questions/{id}/label/wait/ 5、等待回答的问题 GET
questions/ 6、发布问题 POST
questions/{id}/ 7、问题详情 GET
questions/{id}/useful/ 8、问题有用 PUT
questions/{id}/unuseful/ 9、问题没用 PUT
reply/ 10、回答问题 POST
reply/{id}/useful/ 11、回答有用 PUT
reply/4/unuseful/ 12、回答没用 PUT
"""
urlpatterns = [
]
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register(r'labels', views.LabelsViewSet)
# 问答相关
router.register(r'questions', views.QuestionViewSet)
# 回答问题
router.register(r'reply', views.ReplyViewSet)

urlpatterns += router.urls